package com.ka.model;

import java.util.Date;

import android.content.ContentValues;

public class ActivityModel extends GeneralModel {

	private String name;
	private int price;
	private Date time;
	private int price_type;

	public ActivityModel() {
		tableName = "Activity";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public int getPrice_type() {
		return price_type;
	}

	public void setPrice_type(int price_type) {
		this.price_type = price_type;
	}

	@Override
	public ContentValues calculatorValue() {
		ContentValues values = new ContentValues();

		values.put("name", name);
		values.put("price", price);
		values.put("price_type", 0);
		values.put("time", time.toString());

		// values.put(KEY_ID, Integer.parseInt(model.getId()));
		// values.put(KEY_DATA, gson.toJson(model));
		return values;
	}

	@Override
	public String[] calculatorAttr() {
		return new String[] { "id", "name", "price", "price_type", "time" };
	}

}
